package routes

import (
	"github.com/irisProject/app/controllers/admin"
	"github.com/irisProject/app/middleware"
	"github.com/irisProject/bootstrap"
	"github.com/kataras/iris/mvc"
)
func adminRoutes(app *bootstrap.App) {

	adminLogin := mvc.New(app.Party("/admin",protect))
	adminLogin.Handle(new(backend.LoginController))

	adminHome := mvc.New(app.Party("/admin"))
	adminHome.Router.Use(middleware.BasicAuth)
	adminHome.Handle(new(backend.IndexController))

	admin := mvc.New(app.Party("/admin"))
	admin.Router.Use(middleware.BasicAuth)

}


